﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DAL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class TrainingScholarshipFundBLL : ITrainingScholarshipFundBLL
    {
        private static readonly ITrainingScholarshipFundDAL dal = new TrainingScholarshipFundDAL();
        ConvertNullable cn = new ConvertNullable();

        public TrainingScholarshipFundBLL()
        {

        }
        public IList<TrainingScholarshipFundInfo> GetFull()
        {
            return dal.GetFull();
        }
        public IList<TrainingScholarshipFundInfo> GetList(String scholar_fund_seq)
        {
            int ScholarFundSeq = Convert.ToInt32(scholar_fund_seq);
            return dal.GetList(ScholarFundSeq);
        }
        public void Insert(TrainingScholarshipFundInfo info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }
        public void Update(TrainingScholarshipFundInfo info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }
        public void Delete(TrainingScholarshipFundInfo info)
        {
            try
            {
                dal.Delete(info);
            }
            catch
            {
                throw;
            }
        }
    }
}
